package cn.ludi.mapper;

import cn.ludi.entity.UserSession;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserSessionMapper extends BaseMapper<UserSession> {
    @Select("select * from user_session where user_id = #{userId}")
    UserSession getByUserId(Long userId);
}
